<?php 
	$icpp = Zend_Controller_Front::getInstance()->getRequest()->getParam('icpp');
	if($icpp==null){
		$icpp=20;
	}
?>


<div class="paginationControl" align="center">
	<!-- Item count per page -->
	<?php $opts = array(5,10,20,50,100);?>
	<label for="itemCountPerPage">Chọn số dòng hiển thị</label> 
	<select name="icpp" class="text-right" 
		id="itemCountPerPage">
		<?php foreach($opts as $opt){
			$checked = ($opt==$icpp? "selected": "");
			echo "<option value={$opt} $checked>{$opt}</option>";
		}	
		?>
		<!-- <option value="1000">Tất cả</option> -->
	</select>	
	<!-- end item count per page -->
	
<?php if ($this->pageCount>1): ?>
<?php
	
	if (isset($this->first) && $this->first != $this->current){
		
		
		echo "<a href={$this->first}>First</a>";
	
	}
    if (isset($this->previous)){

    	
    	echo "<a href={$this->previous}>< Prev</a>";

    }
    foreach ($this->pagesInRange as $page){
       if ($page == $this->current){
               echo  '<b>' . $page . '</b>';
      }else{

      
      	echo "<a href={$page}>$page</a>";


      }
   }
   if (isset($this->next)){

	   	echo "<a href={$this->next}>Next</a>";

       }
   if (isset($this->last) && $this->last != $this->current){
		
			echo "<a href={$this->last}>last</a>";

   }
  ?>
  <input type="hidden" name='page' value="<?php echo $this->current;?>" id="page" />
<?php endif; ?>
	
</div>

